import java.util.ArrayList;
import java.util.ListIterator;


public class Animation
{
	protected ArrayList<Automaton>	automata;
	protected ArrayList<String>		comments;
	
	/**
	 * @return the automata
	 */
	public ArrayList<Automaton> getautomata()
	{
		return automata;
	}
	
	/**
	 * @param automata
	 *            the automata to set
	 */
	public void setautomata(ArrayList<Automaton> automata)
	{
		this.automata = automata;
	}
	
	/**
	 * @return the comments
	 */
	public ArrayList<String> getComments()
	{
		return comments;
	}
	
	/**
	 * @param comments
	 *            the comments to set
	 */
	public void setComments(ArrayList<String> comments)
	{
		this.comments = comments;
	}
	
	public Animation()
	{
		automata = new ArrayList<Automaton>();
		comments = new ArrayList<String>();
	}
	
	/**
	 * Getting directly the result of an algorithm execution
	 * 
	 * @return the result of an algorithm execution
	 */
	public Automaton getResult()
	{
		Automaton res = null;
		ListIterator<Automaton> it = automata.listIterator();
		
		while (it.hasNext())
		{
			res = it.next();
		}
		

		return res;
	}
}
